home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 109
/
Vol 109.iso
/
games
/
flash_ch.swf
/
scripts
/
DefineSprite_79
/
frame_1
/
DoAction.as
Wrap
Text File
|
2008-11-12
|
979b
|
58 lines
function showPiece(piece)
{
if(piece == _root.VOID)
{
gotoAndStop(1);
}
else if(piece == _root.PAWN_W)
{
gotoAndStop(2);
}
else if(piece == _root.KNIGHT_W)
{
gotoAndStop(3);
}
else if(piece == _root.ROOK_W)
{
gotoAndStop(4);
}
else if(piece == _root.BISSHOP_W)
{
gotoAndStop(5);
}
else if(piece == _root.QUEEN_W)
{
gotoAndStop(6);
}
else if(piece == _root.KING_W)
{
gotoAndStop(7);
}
else if(piece == _root.PAWN_B)
{
gotoAndStop(9);
}
else if(piece == _root.KNIGHT_B)
{
gotoAndStop(10);
}
else if(piece == _root.ROOK_B)
{
gotoAndStop(11);
}
else if(piece == _root.BISSHOP_B)
{
gotoAndStop(12);
}
else if(piece == _root.QUEEN_B)
{
gotoAndStop(13);
}
else if(piece == _root.KING_B)
{
gotoAndStop(14);
}
}
piece = "void";
stop();